//
//  WBHomeViewController.swift
//  微博
//
//  Created by 于子浩 on 2017/5/20.
//  Copyright © 2017年 于子浩. All rights reserved.
//

import UIKit

class WBHomeViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

       setupUI()
       
    }
    
    //显示好友
    func showFriends(){
        
        let vc = WBDemoViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
    
}
 extension WBHomeViewController{

    //重写父类方法
    override func setupUI(){
    
        super.setupUI()
     
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "好友", style: .plain, target: self, action: #selector(showFriends))
       
    }
    
}
